package org.lisen.controlleradvice.controller;

import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author laughing
 * @date 2020/9/26
 * @site https://www.lisen.org
 */
@RestController
public class TestGlobalDataAttributeController {

    /**
     * 测试
     * @param person 绑定模型
     * @return 绑定数据
     */
    @RequestMapping("/testGlobalDataAttribute")
    public Map<String, Object> testDataBinder(@ModelAttribute("person") Map<String, Object> person) {
        return person;
    }

}
